/*
 * Copyright (c) 2017 22420103@QQ.COM 版权所有
 */
package com.lehe.service.impl;

import com.lehe.common.Contants;
import com.lehe.common.exceptions.LHServiceException;
import com.lehe.entry.wx.message.RespBaseMessage;
import com.lehe.entry.wx.message.RespTokenMessage;
import org.springframework.stereotype.Service;

/**
 * 类的功能描述<br>
 *
 * @author 王丹
 * @FileName QueryTokenExecuteService.java<br>
 * @Language Java<br>
 * @date 2016-01-08<br>
 */
@Service("queryTokenExecuteService")
public class QueryTokenExecuteService extends WeChatGetExecuteService {

    @Override
    protected String queryRequestUrl() {
        return Contants.WE_CHAT_TOKEN;
    }

    @Override
    protected RespBaseMessage convertRespMessage(String respHtml) throws LHServiceException {
        return super.convertRespJson(respHtml, RespTokenMessage.class);
    }
}
